<div id="detailContainer_<?php echo $id;?>" class="detailContainer" align="center">
    <table style="width: 528px;">
        <tr>
            <td align="left">
                <div id="detail_title" class="detail_title"></div>
            </td>
            <td align="right">
                
            </td>
        </tr>
    </table>
    <table class="detailTable" id="detailTable" keyColumn="id" url="alimentos" saveUrl="alimentos/save" tableTitle="Alimento" border="0" align="center" cellpadding=2 cellspacing=2 entityname="Alimento" op="add" editId="">
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Nombre:&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="alimento_<?php echo $id;?>" name="alimento" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Ajuste:&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="ajuste_g_cal_<?php echo $id;?>" name="ajuste_g_cal" type="text" size="50" />
            </td>
        </tr>
        <!--<tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Grupo:&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <select id="grupo_alimento_id_<?php echo $id;?>" name="grupo_alimento_id" size="50" />
            </td>
        </tr>-->
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Energía(kj):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="energia_kj_<?php echo $id;?>" name="energia_kj" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Energía(kcal):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="energia_kcal_<?php echo $id;?>" name="energia_kcal" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Agua(g):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="agua_g_<?php echo $id;?>" name="agua_g" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
        <nobr>Prote&iacute;nas(g):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="proteinas_g_<?php echo $id;?>" name="proteinas_g" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Grasa Total(g):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="grasa_total_g_<?php echo $id;?>" name="grasa_total_g" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Carbohidratos Total(g):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="carbohidratos_total_g_<?php echo $id;?>" name="carbohidratos_total_g" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Carbohidratos Disponible(g):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="carbohidratos_disponible_g_<?php echo $id;?>" name="carbohidratos_disponible_g" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Fibra(g):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="fibra_g_<?php echo $id;?>" name="fibra_g" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Cenizas(g):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="cenizas_g_<?php echo $id;?>" name="cenizas_g" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Sodio(mg):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="sodio_mg_<?php echo $id;?>" name="sodio_mg" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Potasio(mg):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="potasio_mg_<?php echo $id;?>" name="potasio_mg" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Calcio(mg):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="calcio_mg_<?php echo $id;?>" name="calcio_mg" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
        <nobr>F&oacute;sforo(mg):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="fosforo_mg_<?php echo $id;?>" name="fosforo_mg" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
        <nobr>Hierro(mg):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="hierro_mg_<?php echo $id;?>" name="hierro_mg" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Zinc(mg):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="zinc_mg_<?php echo $id;?>" name="zinc_mg" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Tiamina(mg):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="tiamina_mg_<?php echo $id;?>" name="tiamina_mg" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Rivoflavina(mg):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="rivoflavina_mg_<?php echo $id;?>" name="rivoflavina_mg" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Niacina(mg):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="niacina_mg_<?php echo $id;?>" name="niacina_mg" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Vitamina C(mg):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="vitamina_c_mg_<?php echo $id;?>" name="vitamina_c_mg" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Ac. Grasos Saturados(g):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="ac_gr_saturados_g_<?php echo $id;?>" name="ac_gr_saturados_g" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Ac. Grasos Monoinsaturados(g):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="ac_gr_monoinsaturados_g_<?php echo $id;?>" name="ac_gr_monoinsaturados_g" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Ac. Grasos Poliinsaturados(g):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="ac_gr_poliinsaturados_g_<?php echo $id;?>" name="ac_gr_poliinsaturados_g" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>Colesterol(mg):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="colesterol_mg_<?php echo $id;?>" name="colesterol_mg" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>AGPw6(mg):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="AGPw6_<?php echo $id;?>" name="AGPw6" type="text" size="50" />
            </td>
        </tr>
        <tr class="detail-frame" bgColor="#EAEFA5">
            <td class="detail_field" entityname="Alimento" column="nombre" filterType="string" minLength="3" required="true" align="left" >
            <nobr>AGPW3(mg):&nbsp;&nbsp;&nbsp;</nobr>
            </td>
            <td>
                    <input id="AGPW3_<?php echo $id;?>" name="AGPW3" type="text" size="50" />
            </td>
        </tr>
        <tr>
                <td colspan="2"><div id="errorMessage_<?php echo $id;?>"></div></td>
        </tr>
        <tr >
                <td colspan="2" align="right">
        <br />
                <!--<input type="button" name="sbtcancel" id="sbtcancel" value="Cancelar" class="standar-button" onclick="window.parent.$('#detail').dialog( 'close' );" > -->
                <input type="button" name="sbtguardar_<?php echo $id;?>" id="sbtguardar_<?php echo $id;?>" value="Guardar" class="standar-button" >
        </td>
        </tr>
    </table>
</div>
